<div class="hp-tab-newprd">
    <ul class="j-sw-nav">
        <li class="newprd-s1 tab-li"><a href="<?php echo base_path().str_replace( arg(1) == 'edit'?'edit':'add','list',current_path());?>">查看</a></li>
        <li class="newprd-s2 tab-li <?php if(arg(1) != 'edit'){?>on<?php }?>"><a href="<?php echo base_path().str_replace( arg(1) == 'edit'?'edit':'list','add',current_path());?>">添加</a></li>
        <?php if(arg(1) == 'edit' && !empty(arg(2))){?>
            <li class="newprd-s3 tab-li on"><a href="javascript:void(0)">修改</a></li>
        <?php }?>
    </ul>
    <div class="table-div" >
        <div class="small-select small-input column" style="clear:both">
            <div class="small-div"><div class="form-label">表单ID:</div><?php print render( $form['form_identifier']); ?></div>
            <div class="small-div"><div class="form-label">表单名称:</div><?php print render($form['title']); ?></div>
        </div>
        <div class="small-select small-input column" style="clear:both">
            <div class="form-label">表单定义JSON字符串:</div><div style="margin-left: 11.3em;margin-top: 10px "><?php print render($form['form_json']); ?></div>
        </div>
        <div class="add-submit" style="text-align: center"><?php print render($form['template_submit']); ?></div>
    </div>
</div>
</div>

<?php print drupal_render_children($form); ?>

